package com.bdqn.t350.service;

import com.bdqn.t350.dao.PowerbatteryDao;
import com.bdqn.t350.dao.impl.PowerbatteryDaoImp;
import com.bdqn.t350.entity.Powerbattery;

import java.util.List;

public class PowerbatteryServiceImp implements PowerbatteryService {


    PowerbatteryDao powerbatteryDao = new PowerbatteryDaoImp();

    @Override
    public int add(Powerbattery powerbattery) {
        return powerbatteryDao.add(powerbattery);
    }

    @Override
    public List<Powerbattery> list() {
        return powerbatteryDao.list();
    }
}
